[hidden] {
    display: none !important;
}

#toast-container {
    position: fixed;
    z-index: 10000;
}

.osb-btn,
.sidebar .osb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    padding: 0 12px;
    margin: 0;
    background: #2a2a2a;
    color: #e6e6e6;
    border: 1px solid #3d3d3d;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.osb-btn:hover,
.sidebar .osb-btn:hover {
    background: #383838;
    border-color: #555555;
    color: #ffffff;
}

.osb-btn.primary,
.sidebar .osb-btn.primary {
    background: #1db954;
    border-color: #1db954;
    color: #000000;
}

.osb-btn.primary:hover,
.sidebar .osb-btn.primary:hover {
    background: #1ed760;
    border-color: #1ed760;
    color: #000000;
}

.osb-btn.danger:hover,
.sidebar .osb-btn.danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff;
}

.osb-btn.sm,
.sidebar .osb-btn.sm {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.osb-btn:focus-visible,
.osb-input:focus-visible,
.osb-select:focus-visible {
    outline: 2px solid #1db954;
    outline-offset: 1px;
}

.osb-btn:disabled,
.sidebar .osb-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #2a2a2a;
    border-color: #3d3d3d;
    color: #e6e6e6;
}

.osb-input,
.osb-select {
    box-sizing: border-box;
    height: 32px;
    min-width: 0;
    padding: 0 10px;
    background: #222222;
    color: #ffffff;
    border: 1px solid #4a4a4a;
    font-family: inherit;
    font-size: 13px;
}

.osb-input::placeholder {
    color: #666666;
}

.osb-select {
    flex: 1;
    cursor: pointer;
}

.track-detail {
    margin: 0;
    color: #ffffff;
    padding: 15px;
    background: #000000;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 70px;
    display: none;
    max-width: 400px;
    position: relative;
}

.track-detail.open {
    display: block;
}

.resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 10;
}

.resize-handle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.cover-art img {
    width: 100%;
    height: auto;
    display: block;
}

.track-info-detail {
    margin: 15px 0;
}

.track-info-detail h2 {
    font-size: 18px;
    margin: 0 0 5px 0;
    word-break: break-word;
}

.track-info-detail p {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0;
    word-break: break-word;
}

.track-meta {
    margin: 0 0 12px 0;
}

.track-meta p {
    margin: 3px 0;
    font-size: 13px;
    color: #b3b3b3;
}

.track-meta p.empty {
    display: none;
}

#meta-unreleased-row {
    margin: 6px 0 0 0;
    font-size: 11px;
    color: #e0a92c;
}

#meta-unreleased-row.empty {
    display: none;
}

#track-unreleased {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.playlist-box {
    margin: 14px 0;
    padding: 12px;
    background: #121212;
    border: 1px solid #282828;
}

.playlist-box h3,
.comments-section h3 {
    font-size: 15px;
    margin: 0 0 8px 0;
    color: #aaaaaa;
}

.playlist-row {
    display: flex;
    gap: 8px;
}

.playlist-row + .playlist-row {
    margin-top: 8px;
}

.playlist-row .osb-btn {
    flex: 1;
}

.comments-section {
    margin-top: 20px;
}

.comments-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.comments-section li {
    padding: 10px 8px;
    border-bottom: 1px solid #282828;
    word-break: break-word;
}

.comments-section li.empty {
    color: #666666;
    font-size: 13px;
}
.comment-body.sm {
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}
.comment-gif {
    max-width: 100%;
    max-height: 200px;
    margin-top: 5px;
    display: block;
    object-fit: contain;
    background: #282828;
}

.add-comment {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.add-comment .osb-input {
    flex: 1;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-avatar {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #282828;
    vertical-align: middle;
    margin-right: 6px;
}

.comment-head strong {
    min-width: 0;
    word-break: break-word;
}

.comment-edited {
    color: #666666;
    font-size: 11px;
}

.comment-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.comment-actions .osb-btn {
    background: transparent;
    border-color: transparent;
    color: #888888;
}

.comment-actions .osb-btn:hover {
    background: #2a2a2a;
    border-color: #3d3d3d;
    color: #ffffff;
}

.comment-actions .osb-btn.danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.comment-edit {
    display: flex;
    gap: 6px;
}

.comment-edit .osb-input {
    flex: 1;
}
